﻿<UserControl x:Class="DIST.LR.ZHJG.Controls.Chart.ucPie3"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:vc="clr-namespace:Visifire.Charts;assembly=SLVisifire.Charts"
    mc:Ignorable="d"
    d:DesignHeight="280" d:DesignWidth="300">

    <Grid x:Name="LayoutRoot" Background="Transparent" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="0.8*"></RowDefinition>
            <RowDefinition Height="0.2*"></RowDefinition>
        </Grid.RowDefinitions>
        <vc:Chart x:Name="chart" Background="Transparent" BorderThickness="0"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" LightingEnabled="False"  ThemeEnabled="False" Grid.Row="0">
            <vc:Chart.Series>
                <vc:DataSeries RenderAs="Pie" StartAngle="330" AutoFitToPlotArea="True">
                    <vc:DataSeries.DataPoints>
                        <vc:DataPoint ShadowEnabled="True" YValue="80" LightingEnabled="False" LabelFontSize="20" AxisXLabel="指标"  LabelFontColor="White" LabelText="#YValue" LabelFontWeight="Bold" Exploded="True" LabelStyle="Inside"  Color="#FF3E6DAE"/>
                        <vc:DataPoint ShadowEnabled="True" YValue="20" LightingEnabled="False" LabelFontSize="10"  LabelFontColor="White" LabelText=" " LabelFontWeight="Bold" Exploded="False"  LabelStyle="Inside" Color="#44B5A3"/>
                    </vc:DataSeries.DataPoints>
                </vc:DataSeries>
            </vc:Chart.Series>
        </vc:Chart>
        <Grid Grid.Row="1">
            <StackPanel Orientation="Horizontal" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10,0,0,0">
                <Rectangle Width="10" Height="10" Margin="0,0,5,0">
                    <Rectangle.Fill>
                        <RadialGradientBrush GradientOrigin="0,0">
                            <GradientStop Color="#FF3E6DAE"></GradientStop>
                        </RadialGradientBrush>
                    </Rectangle.Fill>
                </Rectangle>
                <TextBlock Text="林地" Foreground="#FF525151" FontSize="13" FontFamily="/DIST.LR.ZHJG.Utility.Silverlight;component/Fonts/Fonts.zip#Microsoft YaHei"></TextBlock>
                
                <Rectangle Width="10" Height="10" Margin="20,0,5,0">
                    <Rectangle.Fill>
                        <RadialGradientBrush GradientOrigin="0,0">
                            <GradientStop Color="#44B5A3"></GradientStop>
                        </RadialGradientBrush>
                    </Rectangle.Fill>
                </Rectangle>
                <TextBlock Text="耕地" Foreground="#FF525151" FontSize="13" FontFamily="/DIST.LR.ZHJG.Utility.Silverlight;component/Fonts/Fonts.zip#Microsoft YaHei"></TextBlock>
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>
